import { storage } from "wxt/storage";
//popup 开关状态储存
export const localisenabletools =storage.defineItem<boolean>("local:isenabletools");
export const localisenabletool1 =storage.defineItem<boolean>("local:isenabletool1");
export const localisenabletool2 =storage.defineItem<boolean>("local:isenabletool2");
export const localisenabletool3 =storage.defineItem<boolean>("local:isenabletool3");
//人员资质页面跳转人员名单储存
export const localnamelist =storage.defineItem<Array<string>>("local:namelist");
//变压器页面数据储存
export const localtransformername =storage.defineItem<string>("local:transformername");
export const localtransformerbefore =storage.defineItem<string>("local:transformerbefore");
export const localtransformerafter =storage.defineItem<string>("local:transformerafter");
export const localtransformercircuitbreaker =storage.defineItem<number>("local:transformercircuitbreaker");
export const localtransformerlowcircuitbreaker =storage.defineItem<number>("local:transformerlowcircuitbreaker");
export const localtransformerswitch =storage.defineItem<number>("local:transformerswitch");
export const localtransformertype =storage.defineItem<string>("local:transformertype");

//开关页面数据储存
export const localSwitchname =storage.defineItem<string>("local:Switchname");
export const localSwitchbefore =storage.defineItem<string>("local:Switchbefore");
export const localSwitchafter =storage.defineItem<string>("local:Switchafter");
export const localSwitchcircuitbreaker =storage.defineItem<string>("local:Switchcircuitbreaker");
export const localSwitchtype =storage.defineItem<boolean>("local:Switchtype");

//电缆分接箱页面数据储存
export const localBoxname =storage.defineItem<string>("local:Boxname");
export const localBoxbefore =storage.defineItem<string>("local:Boxbefore");
export const localBoxafter =storage.defineItem<string>("local:Boxafter");
export const localBoxcircuitbreaker =storage.defineItem<string>("local:Boxcircuitbreaker");
export const localBoxtype =storage.defineItem<boolean>("local:Boxtype");

//转供电页面数据储存
export const localSupplytask =storage.defineItem<string>("local:Supplytask");
export const localSupplyonDevice =storage.defineItem<string>("local:SupplyonDevice");
export const localSupplyoffDevice =storage.defineItem<string>("local:SupplyoffDevice");
export const localSupplyonDevicetype =storage.defineItem<Array<any>>("local:SupplyonDevicetype");
export const localSupplyoffDevicetype =storage.defineItem<Array<any>>("local:SupplyoffDevicetype");
export const localSupplyonauto =storage.defineItem<boolean>("local:Supplyonauto");
export const localSupplyoffauto =storage.defineItem<boolean>("local:Supplyoffauto");


// const form = reactive({
//     task: '',
//     onDevice: '',
//     onDevicetype: [],
//     offDevice: '',
//     offDevicetype: [],
//     on_automated_switch: false,
//     off_automated_switch: false,
//   })